package 结构器模式.装饰者模式;

/**
 * @Description 具体构建角色
 * @Author shallow
 * @Date 2023/3/5 16:30
 */

public class FriedRice extends FastFood{
    public FriedRice() {
        super(10, "炒饭");
    }

    @Override
    public float cost() {
        return getPrice();
    }
}
